package com.b2c.pojo.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Pattern;

import static content.common.Regexp.CODE_REGEXP;
import static content.common.ValidMessage.CODE_FORMAT_ERROR;


@EqualsAndHashCode(callSuper = true)
@Data
public class CodeEmailVo extends EmailVo {

    @Pattern(regexp = CODE_REGEXP,message = CODE_FORMAT_ERROR)
    private String code;
}
